import java.io.*;

/**
 * TODO: add description
 *
 * @author atroshanin
 */
public class ProcessTestTxt {

    public static void main(String[] args) throws Exception {

        File f = new File("test.txt");

        BufferedReader reader = new BufferedReader(new FileReader(f));
        String line;
        while ((line = reader.readLine()) != null) {
            String confFilePath = line.substring(0, line.indexOf(':'));
//            System.out.println(confFilePath);
            System.out.println("cat \"" + confFilePath + "\" | sed -e 's/, stephen.lin@db.com/ /' > \"" + confFilePath + "\" ");

        }


        reader.close();

    }

}
